const haspermission = {
  mounted(el, binding) {
    // 获取当前角色可以访问的所有按钮权限
    const btns = localStorage.getItem("btns")
      ? JSON.parse(localStorage.getItem("btns"))
      : [];
      console.log(btns, binding.value, 222);
    if (!btns.includes(binding.value)) {
      el.style.display = "none";
    }
  },
};

export { haspermission };
